package com.lagou.controller;

import com.lagou.client.ResumeClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/autodeliver")
public class AutoDeliverController {

    @Autowired
    private ResumeClient resumeClient;

    @RequestMapping("/openState/{userId}")
    public Integer findResumeOpenState(@PathVariable Long userId) {
        Integer state = resumeClient.findDefaultResumeOpenState(userId);
        return state;
    }
}
